//
//  LFBSingleReadDetailViewController.m
//  ONE
//
//  Created by dllo on 16/6/10.
//  Copyright © 2016年 GroupNine. All rights reserved.
//

#import "LFBSingleReadDetailViewController.h"
#import "LFBReadShortModel.h"
#import "LFBReadSerialModel.h"
#import "LFBReadQuestionModel.h"
#import "LFBReadDetailView.h"

@interface LFBSingleReadDetailViewController ()

/** 文章详情视图 */
@property (nonatomic, strong) LFBReadDetailView *readDetailView;

@end

@implementation LFBSingleReadDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initData];
    [self createView];
}

#pragma mark --初始化数据
- (void)initData
{
    
}

// 创建文章详情view
- (void)createView
{
    _readDetailView = [[LFBReadDetailView alloc] init];
    [self.view addSubview:_readDetailView];
    [_readDetailView makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
    [_readDetailView prepareForReuseWithViewType:_readType];
    [_readDetailView configureViewWithReadModel:_readModel type:_readType atIndex:0 inViewController:self];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
